package org.geeks.gsspringsecurity.repository;

import org.geeks.gsspringsecurity.GsSpringSecurityApplicationTests;
import org.geeks.gsspringsecurity.biz.domain.User;
import org.geeks.gsspringsecurity.biz.repository.UserRepository;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 用户测试
 * 
 * @author Geek-S
 *
 */
public class UserRepositoryT extends GsSpringSecurityApplicationTests {

	@Autowired
	private UserRepository userRepository;

	/**
	 * 添加测试用户
	 */
	@Test
	public void save() {
		User user = new User();
		user.setUsername("geeks");
		user.setPassword("geeks");

		userRepository.save(user);
	}

}
